import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Index from './views/Index.vue'
import Chat from './views/Chat/Chat.vue'
import Announcement from './views/Config/Announcement.vue'
import Copyright from './views/Config/Copyright.vue'
import Studio from './views/Config/Studio.vue'
import Slogon from './views/Config/Slogon.vue'
import Tips from './views/Config/Tips.vue'
import Disclaimer from './views/Config/Disclaimer.vue'
import Teacher from './views/Config/Teacher.vue'
import Banner from './views/Banner/Banner.vue'
import Online from './views/Online/Online.vue'
import OnlineReal from './views/Online/OnlineReal.vue'
import Custom from './views/Custom/Custom.vue'
import CustomTime from './views/Custom/CustomTime.vue'
import QRcode from './views/QRcode/QRcode.vue'
import Course from './views/Course/Course.vue'
import TeacherIntro from './views/Teacher/Teacher.vue'
import LiveTime from './views/LiveTime/LiveTime.vue'

let routes = [{
    path: '/login',
    component: Login,
    name: '',
    hidden: true
}, {
    path: '/notFound',
    component: NotFound,
    name: 'notFound',
    hidden: true
}, {
    path: '/',
    component: Home,
    redirect: '/index',
    name: '',
    hidden: true
}, {
    path: '/index',
    component: Home,
    children: [
        { path: '/', component: Index, name: '主页' }
    ],
    hidden: true
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-wechat',
    children: [
        { path: '/chat', component: Chat, name: '直播互动' }
    ]
}, {
    path: '/',
    component: Home,
    name: '在线会员',
    iconCls: 'fa fa-users',
    children: [
        { path: '/online', component: Online, name: '固定会员' },
        { path: '/onlineReal', component: OnlineReal, name: '真实会员' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-microphone',
    children: [
        { path: '/course', component: Course, name: '课程安排' }
    ]
}, {
    path: '/',
    component: Home,
    name: '客户管理',
    iconCls: 'fa fa-handshake-o',
    children: [
        { path: '/custom', component: Custom, name: '客户信息' },
        { path: '/customTime', component: CustomTime, name: '观看时段统计' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-image',
    children: [
        { path: '/banner', component: Banner, name: 'banner' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-image',
    children: [
        { path: '/qrcode', component: QRcode, name: '客服二维码' }
    ]
}, {
    path: '/',
    component: Home,
    name: '老师设置',
    iconCls: 'fa fa-comment',
    children: [
        { path: '/teacher', component: Teacher, name: '老师名称' },
        { path: '/teacherIntro', component: TeacherIntro, name: '老师简介' },
    ]
}, {
    path: '/',
    component: Home,
    name: '其他设置',
    iconCls: 'fa fa-cog',
    children: [
        { path: '/announcement', component: Announcement, name: '直播公告' },
        { path: '/copyright', component: Copyright, name: '版权申明' },
        { path: '/disclaimer', component: Disclaimer, name: '免责申明' },
        { path: '/slogon', component: Slogon, name: '顶部横幅' },
        { path: '/studio', component: Studio, name: '直播间设置' },
        { path: '/tips', component: Tips, name: '弹窗设置' },
        { path: '/liveTime', component: LiveTime, name: '直播时段设置' }
    ]
}, {
    path: '*',
    redirect: '/notFound',
    hidden: true
}];

export default routes;